package com.example.lucene.model;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 新闻实体类
 */
@Data
@NoArgsConstructor
public class News {

    private int id;//新闻id
    private String title;//新闻标题
    private String content;//新闻内容
    private int reply;//评论数

    public News(int id, String title, String content, int reply) {
        super();
        this.id = id;
        this.title = title;
        this.content = content;
        this.reply = reply;
    }

}